// index.js
// 获取应用实例
const app = getApp()

Page({
  data: {
    bannerImages:[
      {
        img: '../../images/index/EmptyBanner.jpg',
        openPath: ''
      },
      {
        img: '../../images/index/EmptyBanner1.jpg',
        openPath: ''
      },
      {
        img: '../../images/index/EmptyBanner2.jpg',
        openPath: ''
      },
      {
        img: '../../images/index/EmptyBanner3.jpg',
        openPath: ''
      }
    ],
    servicelist: [
      {
        "title": "实用功能",
        "list": [
          {
            img: "../../images/sfz.png",
            openpath: "../../pages/IDcard/IDcard",
            text: "身份证查询"
          },
          {
            img: "../../images/yhk.png",
            openpath: "../../pages/bank/bank",
            text: "银行查询"
          },
          {
            img: "../../images/gsd.png",
            openpath: "../../pages/mobileHome/mobileHome",
            text: "手机归属地"
          },
          {
            img: "../../images/ip.png",
            openpath: "../../pages/IP/IP",
            text: "IP查询"
          },
          {
            img: "../../images/beast.png",
            openpath: "../../pages/beast/beast",
            text: "兽音加密"
          },
          {
            img: "../../images/sc.png",
            openpath: "../../pages/figure/figure",
            text: "身材计算"
          },
          {
            img: "../../images/base.png",
            openpath: "../../pages/base/base",
            text: "进制转化"
          },
          {
            img: "../../images/qq.png",
            openpath: "../../pages/QQ/QQ",
            text: "QQ头像查询"
          }
        ]
      },
      {
        "title": "智能识别",
        "list": [
          {
            img: "../../images/redwine.png",
            openpath: "../../pages/redwine/redwine",
            text: "红酒识别"
          },
          {
            img: "../../images/currency.png",
            openpath: "../../pages/currency/currency",
            text: "货币识别"
          }
        ]
      },
      {
        "title": "待开发",
        "list": [
          {
            img: "../../images/animal.png",
            openpath: "",
            text: "动物识别"
          },
          {
            img: "../../images/plant.png",
            openpath: "",
            text: "植物识别"
          },
          {
            img: "../../images/logistics.png",
            openpath: "",
            text: "物流查询"
          },
          {
            img: "../../images/weather.png",
            openpath: "",
            text: "天气服务"
          },
          {
            img: "../../images/navigation.png",
            openpath: "",
            text: "智能导航"
          }
        ]
      }
    ]
  },
  onLoad() {
  },
  onJumpPage: function(e){
      wx.navigateTo({
        url: e.currentTarget.dataset.openpath,
      })
  }

})
